Eclipse Platform
Pre-release 3.0

org.eclipse.ui
Interface IPartListener2


public interface IPartListener2

Interface for listening to part lifecycle events.

This is a replacement for IPartListener.

This interface may be implemented by clients.

See Also:
IPartService.addPartListener(IPartListener2)

Method Summary
 void partActivated(IWorkbenchPartReference ref)
          Notifies this listener that the given part has been activated.
 void partBroughtToTop(IWorkbenchPartReference ref)
          Notifies this listener that the given part has been brought to the top.
 void partClosed(IWorkbenchPartReference ref)
          Notifies this listener that the given part has been closed.
 void partDeactivated(IWorkbenchPartReference ref)
          Notifies this listener that the given part has been deactivated.
 void partHidden(IWorkbenchPartReference ref)
          Notifies this listener that the given part is hidden.
 void partInputChanged(IWorkbenchPartReference ref)
          Notifies this listener that the given part input was changed.
 void partOpened(IWorkbenchPartReference ref)
          Notifies this listener that the given part has been opened.
 void partVisible(IWorkbenchPartReference ref)
          Notifies this listener that the given part is visible.
 

Method Detail

partActivated

public void partActivated(IWorkbenchPartReference ref)
Notifies this listener that the given part has been activated.

See Also:
IWorkbenchPage.activate(org.eclipse.ui.IWorkbenchPart)

partBroughtToTop

public void partBroughtToTop(IWorkbenchPartReference ref)
Notifies this listener that the given part has been brought to the top.

These events occur when an editor is brought to the top in the editor area, or when a view is brought to the top in a page book with multiple views. They are normally only sent when a part is brought to the top programmatically (via IPerspective.bringToTop). When a part is activated by the user clicking on it, only partActivated is sent.

See Also:
IWorkbenchPage.bringToTop(org.eclipse.ui.IWorkbenchPart)

partClosed

public void partClosed(IWorkbenchPartReference ref)
Notifies this listener that the given part has been closed.

See Also:
IWorkbenchPage.hideView(org.eclipse.ui.IViewPart)

partDeactivated

public void partDeactivated(IWorkbenchPartReference ref)
Notifies this listener that the given part has been deactivated.

See Also:
IWorkbenchPage.activate(org.eclipse.ui.IWorkbenchPart)

partOpened

public void partOpened(IWorkbenchPartReference ref)
Notifies this listener that the given part has been opened.

See Also:
IWorkbenchPage.showView(java.lang.String)

partHidden

public void partHidden(IWorkbenchPartReference ref)
Notifies this listener that the given part is hidden.


partVisible

public void partVisible(IWorkbenchPartReference ref)
Notifies this listener that the given part is visible.


partInputChanged

public void partInputChanged(IWorkbenchPartReference ref)
Notifies this listener that the given part input was changed.


Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.